package edu.taru.hr.service;

import java.util.Vector;

import edu.taru.hr.dao.UserDaoImpl;
import edu.taru.hr.pojo.Yh;

public class UserServiceImpl {
	UserDaoImpl reg=new UserDaoImpl();
	public void registered(Yh s){
		reg.insertUser(s);
	}
	public void passwordChange(Yh s){
		reg.updatePassword(s);
	}
	public  Yh login(String name,String password){
		return reg.selectUser(name, password);
	}
	public void InformationChange(Yh s){
		reg.updateUser(s);
	}
	
	public int deleteUser(String s){
		return reg.deleteUser(s);
	}
	public Vector pollingMessage(){
		return reg.selectUser();
	}
	public Vector searchMessage(){
		return reg.searchUser();
	}
}
